﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
using System.Linq;

public class Data  {

    public static byte[] GetDatas(string message)
    {
        byte[] messageBytes = Encoding.UTF8.GetBytes(message);
        int count = messageBytes.Length;
        byte[] countBytes = BitConverter.GetBytes(count);
        byte[] datas = countBytes.Concat(messageBytes).ToArray();
        return datas;



    }
}
